import { get, post, put, deleteApi } from '@/utils/api'

export function pageQuery(queryParams) {
    return get('/admin/stores/page', queryParams)
}

export function insert(data) {
    return post('/admin/stores', data)
}

export function update(data) {
    return put('/admin/stores', data)
}

export function deleteData(ids) {
    return deleteApi('/admin/stores', ids)
}

export function storeEffectiveOptions() {
    return get('/admin/stores/effective/options')
}

export function getStoreInfo() {
    return get('/admin/stores/info')
}